*                        FUNCTION DEFINITIONS LIST
*
*                             Date: 03.08.96
*
*                             "games.library"
*
##base _GMSBase
##bias 30
##public
*----------------------------------------
* Standard functions                     
*----------------------------------------
Init_GPI(GPI_ID)(d0)
Remove_GPI(GPI_ID)(d0)
Read_Mouse(PortName)(d0)
Read_JoyPort(Portname,ReturnType)(d0/d1)
Read_JoyStick(PortName)(d0)
Read_JoyPad(PortName)(d0)
Read_SegaPad(PortName)(d0)
Read_Analog(PortName)(d0)
Read_Key(KeyStruct)(a0)
FastRandom(range)(d1)
SlowRandom(range)(d1)
Wait_LMB()()
Wait_Fire(PortName)(d0)
Wait_Time(MicroSeconds)(d0)
Reserved2S()()
SetFilter(NewStatus)(d0)
Add_InputHandler()()
Rem_InputHandler()()
Add_Interrupt(Interrupt,IntNum,IntPri)(a0/d0/d1)
Rem_Interrupt(IntBase)(a0)
SmartLoad(FileName,Destination,Password,MemType)(a0/a1/d0/d1)
QuickLoad(FileName,Destination,MemType)(a0/a1/d0)
SmartUnpack(Source,Destination,Password,MemType)(a0/a1/d0/d1)
SmartSave(FileName,Source,SrcLength)(a0,a1,d0)
SetUserPri()()
SetGMSPrefs(Prefs)(a0)
UnpackPic(Source,Picture)(a1/a0)
LoadPic(FileName,Picture)(a0/a1)
AllocMemBlock(Size,MemType)(d0/d1)
FreeMemBlock(MemBlock)(d0)
FreePic(PicStruct)(a0)
Reserved21()()
Reserved22()()
Reserved23()()
Reserved24()()
Reserved25()()
Reserved26()()
Reserved27()()
Reserved28()()
Reserved29()()
Reserved2A()()
Reserved2B()()
Reserved2C()()
Reserved2D()()
Reserved2E()()
Reserved2F()()
Reserved2G()()
Reserved2H()()
Reserved2I()()
Reserved2J()()
Reserved2K()()
Reserved2L()()
Reserved2M()()
Reserved2N()()
Reserved2O()()
Reserved2P()()
Reserved2Q()()
Reserved2R()()
*----------------------------------------
* Screens.GPI general functions.         
*----------------------------------------
Add_Screen(GameScreen)(a0)
Delete_Screen(GameScreen)(a0)
Show_Screen(GameScreen)(a0)
Hide_Screen()()
ReturnToOS()()
AutoOSReturn()()
SwapBuffers(GameScreen)(a0)
Wait_VBL()()
Wait_OSVBL()()
Wait_ORVBL()()
Wait_RastLine(LinePosition)(d0)
Refresh_Screen(GameScreen)(a0)
Remake_Screen(GameScreen)(a0)
Move_Picture(GameScreen)(a0)
Reset_Picture(GameScreen)(a0)
*
* Colour functions.
*
B12_FadeToBlack(GameScreen,FadeState)(a0/d0)
B12_FadeToWhite(GameScreen,FadeState,StartCol,AmtCols)(a0/d0/d1/d2)
B12_FadeToPalette(GameScreen,FadeState,Palette,StartCol,AmtCols)(a0/d0/a1/d1/d2)
B12_FadeToColour(GameScreen,FadeState,RGB)(a0/d0/d1)
B24_FadeToBlack(GameScreen,FadeState,Speed)(a0/d0/d1)
B24_FadeToWhite(GameScreen,FadeState,Speed)(a0/d0/d1)
B24_FadeToPalette(GameScreen,FadeState,Palette,Speed)(a0/d0/a1/d1)
B24_FadeToColour(GameScreen,FadeState,RRGGBB,Speed)(a0/d0/d2/d1)
Change_Colours(GameScreen,Colours,FadeState,StartColour,AmtColours)(a0/a1/d0/d1/d2)
Blank_Colours(GameScreen,FadeState)(a0/d0)
*
* Rasterlist functions.
*
Init_RasterList(GameScreen)(a0)
Update_RasterList(GameScreen)(a0)
Update_RasterCommand(GameScreen,Command)(a0/a2)
Update_RasterCommands(GameScreen,Command,Amount)(a0/a2/d0)
Update_RasterLines(GameScreen)(a0)
Remove_RasterList(GameScreen)(a0)
Hide_RasterList(GameScreen)(a0)
Show_RasterList(GameScreen)(a0)
*
* Sprite functions.
*
Init_Sprite(GameScreen,SpriteStruct)(a0/a1)
Update_Sprite(GameScreen,SpriteStruct)(a0/a1)
Move_Sprite(GameScreen)(a0)
Hide_Sprite(GameScreen,SpriteNum)(a0/d0)
Update_SpriteList(SpriteList)(a0)
Hide_SpriteList(SpriteList)(a0)
Remove_AllSprites(GameScreen)(a0)
Return_AllSprites(GameScreen)(a0)
*
* Reserved for later!
*
Reserved00()()
Reserved01()()
Reserved02()()
Reserved03()()
Reserved04()()
Reserved05()()
Reserved06()()
Reserved07()()
Reserved08()()
Reserved09()()
Reserved0A()()
Reserved0B()()
Reserved0C()()
Reserved0D()()
Reserved0E()()
Reserved0F()()
Reserved0G()()
Reserved0H()()
Reserved0I()()
Reserved0J()()
Reserved0K()()
Reserved0L()()
*----------------------------------------
* Blitter.GPI                            
*----------------------------------------
Init_BOB(GameScreen,BOBStruct)(a0/a1)
Init_BOBList(GameScreen,BOBStructList)(a0/a1)
Draw_BOB(GameScreen,BOBStruct)(a0/a1)
Draw_BOBList(GameScreen,BOBStructList)(a0/a1)
Clear_BOB(GameScreen,BOBStruct)(a0/a1)
Clear_BOBList(GameScreen,BOBStructList)(a0/a1)
Draw_VerticalSeries(GameScreen,SeriesStruct)(a0/a1)
Draw_ScaledBMap(GameScreen)(a0)
Draw_Pattern(GameScreen)(a0)
Draw_Line(GameScreen,SX,SY,EX,EY)(a0/d0/d1/d2/d3)
Draw_Direct(GameScreen,DirectValues)(a0,a1)
SnR_Backgrounds(GameScreen,BOBList)(a0/a1)
Clear_Screen(GameScreen)(a0) 
Clear_ScreenArea(GameScreen,TopX,TopY,BotX,BotY)(a0/d0/d1/d2/d3)
GrabBlitter()()
FreeBlitter()()
Reserved10()()
Reserved11()()
Reserved12()()
Reserved13()()
Reserved14()()
Reserved15()()
Reserved16()()
Reserved17()()
Reserved18()()
Reserved19()()
Reserved1A()()
Reserved1B()()
Reserved1C()()
Reserved1D()()
Reserved1E()()
Reserved1F()()
Reserved1G()()
Reserved1H()()
Reserved1I()()
Reserved1J()()
Reserved1K()()
Reserved1L()()
Reserved1M()()
Reserved1N()()
Reserved1O()()
Reserved1P()()
Reserved1Q()()
*----------------------------------------
* Sound.GPI                              
*----------------------------------------
AllocAudio()()
FreeAudio()()
InitSound(SoundStruct)(a0)
FreeSound(SoundStruct)(a0)
CheckChannel(ChannelName)(d0)
*
* Play routines.
*
PlaySound(SoundStruct)(a0)
PlaySoundDAC1(SoundStruct)(a0)
PlaySoundDAC2(SoundStruct)(a0)
PlaySoundDAC3(SoundStruct)(a0)
PlaySoundDAC4(SoundStruct)(a0)
PlaySoundPri(SoundStruct)(a0)
PlaySoundPriDAC1(SoundStruct)(a0)
PlaySoundPriDAC2(SoundStruct)(a0)
PlaySoundPriDAC3(SoundStruct)(a0)
PlaySoundPriDAC4(SoundStruct)(a0)
SetVolume(Channel,Volume)(d0/d1)
FadeVolume(Channel)()
StopSound(SoundStruct)(a0)
StopChannel(Channel)(d0)
*
* Music play routines.
*
InitPlayer()()
PlayMOD()()
StopPlayer()()
##end
